
@extends('admin.layouts.app')

@section('content')


    <div class="admin-content">

        <div class="am-cf am-padding">
            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">管理首页</strong> /
                <small>Manage Home</small>
            </div>
        </div>


        <ul class="am-avg-sm-1 am-avg-md-4 am-margin am-padding am-text-center admin-content-list ">
            <li>
                <a href="/shop/order/index" class="am-text-warning">
                    <span class="am-icon-btn am-icon-list-alt"></span><br>订单管理<br>{{\App\Models\wechat\Order::count()}}
                </a>
            </li>

            <li>
                <a href="{{route('shop.product.index')}}" class="am-text-success">
                    <span class="am-icon-btn am-icon-cart-plus"></span><br>商品管理<br>{{ \App\Models\shop\Product::count() }}
                </a>
            </li>

            <li>
                <a href="/shop/customer/index" class="am-text-danger">
                    <span class="am-icon-btn am-icon-user"></span><br>会员管理<br>{{\App\Models\shop\Customer::count()}}
                </a>
            </li>
            <li>
                <a href="/system/clear_cache" class="am-text-secondary">
                    <span class="am-icon-btn am-icon-refresh am-icon-spin"></span><br>清除缓存
                </a>
            </li>
        </ul>


        <hr data-am-widget="divider" style="" class="am-divider am-divider-default"/>

        <div class="am-g">
            <div class="am-u-sm-12">
                <div id="sales_count" style="width: 100%;height:400px;"></div>
            </div>
        </div>

        <div class="am-g">

            <div class="am-u-sm-12">
                <div id="sales_amount" style="width: 100%;height:400px;"></div>
            </div>
        </div>
        <hr data-am-widget="divider" style="" class="am-divider am-divider-default"/>


        <div class="am-g">
            <div class="am-u-sm-12">
                <div id="top" style="width: 100%;height:600px;"></div>
            </div>

            {{--<div class="am-u-sm-6">--}}
            {{--<div id="sales_area" style="width: 100%;height:600px;"></div>--}}
            {{--</div>--}}
        </div>


        <footer>
            <hr>
            <p class="am-padding-left">© Copyright © 2013-2016 fangshop小店版權所有..</p>
        </footer>    </div>

@endsection

@section('js')
    <script src="assets/js/echarts.min.js"></script>

    @endsection